-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Allow admins to rename non-local users #35970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow admins to rename non-local users #35970
Conversation
wxiaoguang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to add a test to cover the new behavior
delvh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, given the following:
I think the second reason why this was disabled is also that it leads to desync between online data and the local data.
I am not sure if or when data is synced, and what will happen in this case.
Additionally, this means there is no way to reset it back to the online state.
Can do, will take a look at that tomorrow. |
e38a773 to
77cef7e
Compare
77cef7e to
ffdd25e
Compare
|
Added tests, rebased, and squashed |
123f12e to
d4fff82
Compare
Presently, attempting to rename a non-local (e.g. Oauth2 or LDAP) user results in an error, even if the requester is an administrator. As far as I can tell, this is a security feature, not architectural in nature, as automatic account linking could be used to take control of another user's account. This is not a concern for an administrator, who we should trust to know what they are doing.
This patch allows admins, and only admins, to rename non-local users.
Fixes #18308 (sort of)